Add scala library and sample test classes