Made tests runnable as standalone library

Change-Id: I95dcd08d71d0b795e006b68c5b8a504f6508f363