Added function stubs for tests, feel free to help complete them.