add source code tests