On the second problem, I have found that while it is impossible to obtain test-repo source code via 'guix build -S test-repo', it can be retrieved programmatically from 'guix repl' REPL using this commands:
(use-modules (test-repo-package)
(guix packages)
(guix gexp)
(guix store))
(define src (package-source test-repo))
(run-with-store (open-connection) (lower-object src))
So, perhaps this problem is not so thorough.
Regards,
Nigko
