Added gtest framework, small changes to stamina